import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 直接对外暴露
import '@/utils/ElementUI'
import 'nprogress/nprogress.css'
import moment from 'moment'
import echarts from 'echarts'
// 如果报错可以使
import * as imgs from '@/directives'
import '@/permission'
console.log(imgs)
// 快速注册自定义指令

Object.keys(imgs).forEach(item => {
  Vue.directive(item, imgs[item])
})
// import '@/styles/common'

Vue.prototype.moment = moment
Vue.prototype.$echarts = echarts // permission control
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
